package com.cici.feign.accountservice;

import com.cici.body.requestbody.TbTestAddressCreateRequestBody;
import com.cici.entity.TbTestAddress;
import com.cici.feign.accountservice.fallback.AccountServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name="account-service",fallback = AccountServiceFallBack.class)
public interface AccountServiceFeign {

    @RequestMapping(path = "/tb_test_addresss",method = RequestMethod.POST)
    TbTestAddress createTbTestAddress(@RequestBody TbTestAddressCreateRequestBody body);

    @RequestMapping(path = "/tb_test_addresss/get",method = RequestMethod.GET)
    TbTestAddress getTbTestAddress();
}
